var myScroll;
function loaded () {
	var myScrollArr =[];
	$(".HWrapperBox").each(function (i,e){
		var _Hwrapper = $(this).children("div")[0];
		var _id ="#"+ $(_Hwrapper).attr('id');
		myScrollArr[i] = new IScroll(_id, { scrollX: true, scrollY: false, mouseWheel: true });
	})
	//var myScroll = new IScroll("#wrapper", { scrollX: true, scrollY: false, mouseWheel: true });
	var	myScroll = new IScroll('#wrapper', { mouseWheel: true,click: true , tap: true });
	document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
}
function resizeScrollEle(){
	$(".Hscroller").each(function (){
		var HSli = $(this).find('li');
		//加50防止li宽度不够
	 	$(this).width(HSli.length * $(HSli[0]).width()+50);
	})
}
$(document).ready(function (){
	resizeScrollEle();
 	loaded();
})


	



